package com.ruoyi.web.controller.tool;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.Date;

public class DateDifference {
    public static long diff(Date start,Date end) {

        long time1 = start.getTime();
        long time2 = end.getTime();

        long diffSeconds = Math.abs(time2 - time1);
        return diffSeconds / (60*1000);
    }
}
